Notify the "embedded" property also on normal construction and when
authorChristian Persch <chpe@cvs.gnome.org>
Mon, 25 Dec 2006 12:29:35 +0000 (12:29 +0000)
committerChristian Persch <chpe@src.gnome.org>
Mon, 25 Dec 2006 12:29:35 +0000 (12:29 +0000)
2006-12-25  Christian Persch  <chpe@cvs.gnome.org>

* gtk/gtkplug.c: (gtk_plug_construct_for_display),
(gtk_plug_unrealize): Notify the "embedded" property also on
normal construction and when destroying the socket window.
Bug #388738.

ChangeLog
gtk/gtkplug.c

index 3c526aa74a1e7b76f7ea6d2b1209bdaa63a405ef..2cdce168ed15617dd6a18a4971e729a8388fa162 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
+
+       * gtk/gtkplug.c: (gtk_plug_construct_for_display),
+       (gtk_plug_unrealize): Notify the "embedded" property also on
+       normal construction and when destroying the socket window.
+       Bug #388738.
+
 2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
 
        * gtk/gtkaboutdialog.c: (gtk_about_dialog_class_init),
index 499b1e04daf11389b616f8c730f9841a53988710..f9ca4eff8a024c169ceb1ce486dc6d614286f844 100644 (file)
@@ -422,8 +422,11 @@ gtk_plug_construct_for_display (GtkPlug         *plug,
            }
        }
 
-      if (plug->socket_window)
+      if (plug->socket_window) {
        g_signal_emit (plug, plug_signals[EMBEDDED], 0);
+
+        g_object_notify (G_OBJECT (plug), "embedded");
+      }
     }
 }
 
@@ -493,6 +496,8 @@ gtk_plug_unrealize (GtkWidget *widget)
       gdk_window_set_user_data (plug->socket_window, NULL);
       g_object_unref (plug->socket_window);
       plug->socket_window = NULL;
+
+      g_object_notify (G_OBJECT (widget), "embedded");
     }
 
   if (!plug->same_app)